﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Crude.Common;

namespace Crude.VisualStudioAddin.ViewModels
{
    public class ProjectReferenceViewModel
    {
        public bool CrudeReference { get; set; }

        public bool OriginalCrudeReference { get; set; }

        public bool IsCrudeAvailable { get; set; }

        public IList<ProjectObjectModel> AvailableVersions { get; set; }

        public string Name { get; set; }

        public string Version { get; set; }

        public string Description { get; set; }

        public string CrudeStatus
        {
            get
            {
                if (CrudeReference)
                {
                    return "Convert to Normal Reference";
                }
                else if (IsCrudeAvailable)
                {
                    return "Convert to Crude Reference";
                }
                else
                {
                    return null;
                }
            }
        }
    }
}
